package com.zx.sericefeign.controller;

import com.zx.sericefeign.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description HelloFeign http://localhost:8005/feign?name=zx
 * @Author Zhang Xin
 * @Date 2020/7/22
 */
@RestController
public class HelloFeign {
    @Autowired
    SchedualServiceHi schedualServiceHi;

    @RequestMapping(value = "/hif",method = RequestMethod.GET)
    public String sayHi(@RequestParam String name){
        return schedualServiceHi.sayHiFromClientOne(name);
    }
}
